package com.video.main_video.manager.handle.uploadFile;

import com.video.main_video.dao.entity.VideoInfo;
import com.video.main_video.manager.mapper.VideoInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UploadFile {
    @Autowired
    VideoInfoMapper videoInfoMapper;

    public String handler(VideoInfo videoInfo){
        insertDb(videoInfo);
        return "";
    }


    public boolean insertDb(VideoInfo videoInfo){

        int insert = videoInfoMapper.insert(videoInfo);
        return insert != 0;
    }


}
